import Api from 'api';

class WebApi {
    queryOrderList = (params = {})=>Api({
        url: 'order/list',
        method: 'POST',
        body: Object.assign({}, params)
    })


    queryOrderDetail = (tid = "")=>Api({
        url: `order/detail/${tid}`,
        method: 'GET'
    });

    receipt = (tid = "")=>Api({
        url: `order/paySuccess/${tid}`,
        method: 'GET',
    })

    completeOrder = (tid = '')=>Api({
        url: `order/complete/${tid}`,
        method: 'POST',
        body: {}
    })
}

export default new WebApi();